
//----------------------------------------
// 代码由GenlibLcl工具自动生成。
// Copyright © ying32. All Rights Reserved.
//
//----------------------------------------

function TreeView_Create(AOwner: TComponent): TTreeView; extdecl;
begin
  Result :=  TTreeView.Create(AOwner);
  Result.ScrollBars := ssAutoBoth;
end;

procedure TreeView_Free(AObj: TTreeView); extdecl;
begin
  AObj.Free;
end;

procedure TreeView_FullCollapse(AObj: TTreeView); extdecl;
begin
  AObj.FullCollapse;
end;

procedure TreeView_FullExpand(AObj: TTreeView); extdecl;
begin
  AObj.FullExpand;
end;

function TreeView_GetNodeAt(AObj: TTreeView; X: Integer; Y: Integer): TTreeNode; extdecl;
begin
  Result :=  AObj.GetNodeAt(X, Y);
end;

function TreeView_IsEditing(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.IsEditing;
end;

procedure TreeView_LoadFromFile(AObj: TTreeView; FileName: PChar); extdecl;
begin
  AObj.LoadFromFile(FileName);
end;

procedure TreeView_LoadFromStream(AObj: TTreeView; Stream: TStream); extdecl;
begin
  AObj.LoadFromStream(Stream);
end;

procedure TreeView_SaveToFile(AObj: TTreeView; FileName: PChar); extdecl;
begin
  AObj.SaveToFile(FileName);
end;

procedure TreeView_SaveToStream(AObj: TTreeView; Stream: TStream); extdecl;
begin
  AObj.SaveToStream(Stream);
end;

procedure TreeView_ClearSelection(AObj: TTreeView; KeepPrimary: LongBool); extdecl;
begin
  AObj.ClearSelection(KeepPrimary);
end;

function TreeView_CustomSort(AObj: TTreeView; SortProc: PFNTVCOMPARE; Data: NativeInt; ARecurse: LongBool): LongBool; extdecl;
begin
  Result :=  AObj.CustomSort(SortProc, Data, ARecurse);
end;

function TreeView_CanFocus(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.CanFocus;
end;

function TreeView_ContainsControl(AObj: TTreeView; Control: TControl): LongBool; extdecl;
begin
  Result :=  AObj.ContainsControl(Control);
end;

function TreeView_ControlAtPos(AObj: TTreeView; var Pos: TPoint; AllowDisabled: LongBool; AllowWinControls: LongBool): TControl; extdecl;
begin
  Result :=  AObj.ControlAtPos(Pos, AllowDisabled, AllowWinControls);
end;

procedure TreeView_DisableAlign(AObj: TTreeView); extdecl;
begin
  AObj.DisableAlign;
end;

procedure TreeView_EnableAlign(AObj: TTreeView); extdecl;
begin
  AObj.EnableAlign;
end;

function TreeView_FindChildControl(AObj: TTreeView; ControlName: PChar): TControl; extdecl;
begin
  Result :=  AObj.FindChildControl(ControlName);
end;

procedure TreeView_FlipChildren(AObj: TTreeView; AllLevels: LongBool); extdecl;
begin
  AObj.FlipChildren(AllLevels);
end;

function TreeView_Focused(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.Focused;
end;

function TreeView_HandleAllocated(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.HandleAllocated;
end;

procedure TreeView_InsertControl(AObj: TTreeView; AControl: TControl); extdecl;
begin
  AObj.InsertControl(AControl);
end;

procedure TreeView_Invalidate(AObj: TTreeView); extdecl;
begin
  AObj.Invalidate;
end;

procedure TreeView_RemoveControl(AObj: TTreeView; AControl: TControl); extdecl;
begin
  AObj.RemoveControl(AControl);
end;

procedure TreeView_Realign(AObj: TTreeView); extdecl;
begin
  AObj.Realign;
end;

procedure TreeView_Repaint(AObj: TTreeView); extdecl;
begin
  AObj.Repaint;
end;

procedure TreeView_ScaleBy(AObj: TTreeView; M: Integer; D: Integer); extdecl;
begin
  AObj.ScaleBy(M, D);
end;

procedure TreeView_ScrollBy(AObj: TTreeView; DeltaX: Integer; DeltaY: Integer); extdecl;
begin
  AObj.ScrollBy(DeltaX, DeltaY);
end;

procedure TreeView_SetBounds(AObj: TTreeView; ALeft: Integer; ATop: Integer; AWidth: Integer; AHeight: Integer); extdecl;
begin
  AObj.SetBounds(ALeft, ATop, AWidth, AHeight);
end;

procedure TreeView_SetFocus(AObj: TTreeView); extdecl;
begin
  AObj.SetFocus;
end;

procedure TreeView_Update(AObj: TTreeView); extdecl;
begin
  AObj.Update;
end;

procedure TreeView_BringToFront(AObj: TTreeView); extdecl;
begin
  AObj.BringToFront;
end;

procedure TreeView_ClientToScreen(AObj: TTreeView; var Point: TPoint; var Result: TPoint); extdecl;
begin
  Result :=  AObj.ClientToScreen(Point);
end;

procedure TreeView_ClientToParent(AObj: TTreeView; var Point: TPoint; AParent: TWinControl; var Result: TPoint); extdecl;
begin
  Result :=  AObj.ClientToParent(Point, AParent);
end;

function TreeView_Dragging(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.Dragging;
end;

function TreeView_HasParent(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.HasParent;
end;

procedure TreeView_Hide(AObj: TTreeView); extdecl;
begin
  AObj.Hide;
end;

function TreeView_Perform(AObj: TTreeView; Msg: Cardinal; WParam: NativeUInt; LParam: NativeInt): NativeInt; extdecl;
begin
  Result :=  AObj.Perform(Msg, WParam, LParam);
end;

procedure TreeView_Refresh(AObj: TTreeView); extdecl;
begin
  AObj.Refresh;
end;

procedure TreeView_ScreenToClient(AObj: TTreeView; var Point: TPoint; var Result: TPoint); extdecl;
begin
  Result :=  AObj.ScreenToClient(Point);
end;

procedure TreeView_ParentToClient(AObj: TTreeView; var Point: TPoint; AParent: TWinControl; var Result: TPoint); extdecl;
begin
  Result :=  AObj.ParentToClient(Point, AParent);
end;

procedure TreeView_SendToBack(AObj: TTreeView); extdecl;
begin
  AObj.SendToBack;
end;

procedure TreeView_Show(AObj: TTreeView); extdecl;
begin
  AObj.Show;
end;

function TreeView_GetTextBuf(AObj: TTreeView; Buffer: PChar; BufSize: Integer): Integer; extdecl;
begin
  Result :=  AObj.GetTextBuf(Buffer, BufSize);
end;

function TreeView_GetTextLen(AObj: TTreeView): Integer; extdecl;
begin
  Result :=  AObj.GetTextLen;
end;

procedure TreeView_SetTextBuf(AObj: TTreeView; Buffer: PChar); extdecl;
begin
  AObj.SetTextBuf(Buffer);
end;

function TreeView_FindComponent(AObj: TTreeView; AName: PChar): TComponent; extdecl;
begin
  Result :=  AObj.FindComponent(AName);
end;

function TreeView_GetNamePath(AObj: TTreeView): PChar; extdecl;
begin
  Result :=  PChar(AObj.GetNamePath);
end;

procedure TreeView_Assign(AObj: TTreeView; Source: TPersistent); extdecl;
begin
  AObj.Assign(Source);
end;

function TreeView_ClassType(AObj: TTreeView): TClass; extdecl;
begin
  Result :=  AObj.ClassType;
end;

function TreeView_ClassName(AObj: TTreeView): PChar; extdecl;
begin
  Result :=  ToPChar(AObj.ClassName);
end;

function TreeView_InstanceSize(AObj: TTreeView): Integer; extdecl;
begin
  Result :=  AObj.InstanceSize;
end;

function TreeView_InheritsFrom(AObj: TTreeView; AClass: TClass): LongBool; extdecl;
begin
  Result :=  AObj.InheritsFrom(AClass);
end;

function TreeView_Equals(AObj: TTreeView; Obj: TObject): LongBool; extdecl;
begin
  Result :=  AObj.Equals(Obj);
end;

function TreeView_GetHashCode(AObj: TTreeView): Integer; extdecl;
begin
  Result :=  AObj.GetHashCode;
end;

function TreeView_ToString(AObj: TTreeView): PChar; extdecl;
begin
  Result :=  PChar(AObj.ToString);
end;

function TreeView_GetAlign(AObj: TTreeView): TAlign; extdecl;
begin
  Result :=  AObj.Align;
end;

procedure TreeView_SetAlign(AObj: TTreeView; AValue: TAlign); extdecl;
begin
  AObj.Align := AValue;
end;

function TreeView_GetAnchors(AObj: TTreeView): TAnchors; extdecl;
begin
  Result :=  AObj.Anchors;
end;

procedure TreeView_SetAnchors(AObj: TTreeView; AValue: TAnchors); extdecl;
begin
  AObj.Anchors := AValue;
end;

function TreeView_GetAutoExpand(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.AutoExpand;
end;

procedure TreeView_SetAutoExpand(AObj: TTreeView; AValue: LongBool); extdecl;
begin
  AObj.AutoExpand := AValue;
end;

function TreeView_GetBiDiMode(AObj: TTreeView): TBiDiMode; extdecl;
begin
  Result :=  AObj.BiDiMode;
end;

procedure TreeView_SetBiDiMode(AObj: TTreeView; AValue: TBiDiMode); extdecl;
begin
  AObj.BiDiMode := AValue;
end;

function TreeView_GetBorderStyle(AObj: TTreeView): TBorderStyle; extdecl;
begin
  Result :=  AObj.BorderStyle;
end;

procedure TreeView_SetBorderStyle(AObj: TTreeView; AValue: TBorderStyle); extdecl;
begin
  AObj.BorderStyle := AValue;
end;

function TreeView_GetBorderWidth(AObj: TTreeView): TBorderWidth; extdecl;
begin
  Result :=  AObj.BorderWidth;
end;

procedure TreeView_SetBorderWidth(AObj: TTreeView; AValue: TBorderWidth); extdecl;
begin
  AObj.BorderWidth := AValue;
end;

function TreeView_GetColor(AObj: TTreeView): TColor; extdecl;
begin
  Result :=  AObj.Color;
end;

procedure TreeView_SetColor(AObj: TTreeView; AValue: TColor); extdecl;
begin
  AObj.Color := AValue;
end;

function TreeView_GetDoubleBuffered(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.DoubleBuffered;
end;

procedure TreeView_SetDoubleBuffered(AObj: TTreeView; AValue: LongBool); extdecl;
begin
  AObj.DoubleBuffered := AValue;
end;

function TreeView_GetDragKind(AObj: TTreeView): TDragKind; extdecl;
begin
  Result :=  AObj.DragKind;
end;

procedure TreeView_SetDragKind(AObj: TTreeView; AValue: TDragKind); extdecl;
begin
  AObj.DragKind := AValue;
end;

function TreeView_GetDragCursor(AObj: TTreeView): TCursor; extdecl;
begin
  Result :=  AObj.DragCursor;
end;

procedure TreeView_SetDragCursor(AObj: TTreeView; AValue: TCursor); extdecl;
begin
  AObj.DragCursor := AValue;
end;

function TreeView_GetDragMode(AObj: TTreeView): TDragMode; extdecl;
begin
  Result :=  AObj.DragMode;
end;

procedure TreeView_SetDragMode(AObj: TTreeView; AValue: TDragMode); extdecl;
begin
  AObj.DragMode := AValue;
end;

function TreeView_GetEnabled(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.Enabled;
end;

procedure TreeView_SetEnabled(AObj: TTreeView; AValue: LongBool); extdecl;
begin
  AObj.Enabled := AValue;
end;

function TreeView_GetFont(AObj: TTreeView): TFont; extdecl;
begin
  Result :=  AObj.Font;
end;

procedure TreeView_SetFont(AObj: TTreeView; AValue: TFont); extdecl;
begin
  AObj.Font := AValue;
end;

function TreeView_GetHideSelection(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.HideSelection;
end;

procedure TreeView_SetHideSelection(AObj: TTreeView; AValue: LongBool); extdecl;
begin
  AObj.HideSelection := AValue;
end;

function TreeView_GetHotTrack(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.HotTrack;
end;

procedure TreeView_SetHotTrack(AObj: TTreeView; AValue: LongBool); extdecl;
begin
  AObj.HotTrack := AValue;
end;

function TreeView_GetImages(AObj: TTreeView): TCustomImageList; extdecl;
begin
  Result :=  AObj.Images;
end;

procedure TreeView_SetImages(AObj: TTreeView; AValue: TCustomImageList); extdecl;
begin
  AObj.Images := AValue;
end;

function TreeView_GetIndent(AObj: TTreeView): Integer; extdecl;
begin
  Result :=  AObj.Indent;
end;

procedure TreeView_SetIndent(AObj: TTreeView; AValue: Integer); extdecl;
begin
  AObj.Indent := AValue;
end;

function TreeView_GetMultiSelect(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.MultiSelect;
end;

procedure TreeView_SetMultiSelect(AObj: TTreeView; AValue: LongBool); extdecl;
begin
  AObj.MultiSelect := AValue;
end;

function TreeView_GetMultiSelectStyle(AObj: TTreeView): TMultiSelectStyle; extdecl;
begin
  Result :=  AObj.MultiSelectStyle;
end;

procedure TreeView_SetMultiSelectStyle(AObj: TTreeView; AValue: TMultiSelectStyle); extdecl;
begin
  AObj.MultiSelectStyle := AValue;
end;

function TreeView_GetParentColor(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.ParentColor;
end;

procedure TreeView_SetParentColor(AObj: TTreeView; AValue: LongBool); extdecl;
begin
  AObj.ParentColor := AValue;
end;

function TreeView_GetParentFont(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.ParentFont;
end;

procedure TreeView_SetParentFont(AObj: TTreeView; AValue: LongBool); extdecl;
begin
  AObj.ParentFont := AValue;
end;

function TreeView_GetParentShowHint(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.ParentShowHint;
end;

procedure TreeView_SetParentShowHint(AObj: TTreeView; AValue: LongBool); extdecl;
begin
  AObj.ParentShowHint := AValue;
end;

function TreeView_GetPopupMenu(AObj: TTreeView): TPopupMenu; extdecl;
begin
  Result :=  AObj.PopupMenu;
end;

procedure TreeView_SetPopupMenu(AObj: TTreeView; AValue: TPopupMenu); extdecl;
begin
  AObj.PopupMenu := AValue;
end;

function TreeView_GetReadOnly(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.ReadOnly;
end;

procedure TreeView_SetReadOnly(AObj: TTreeView; AValue: LongBool); extdecl;
begin
  AObj.ReadOnly := AValue;
end;

function TreeView_GetRightClickSelect(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.RightClickSelect;
end;

procedure TreeView_SetRightClickSelect(AObj: TTreeView; AValue: LongBool); extdecl;
begin
  AObj.RightClickSelect := AValue;
end;

function TreeView_GetRowSelect(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.RowSelect;
end;

procedure TreeView_SetRowSelect(AObj: TTreeView; AValue: LongBool); extdecl;
begin
  AObj.RowSelect := AValue;
end;

function TreeView_GetShowButtons(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.ShowButtons;
end;

procedure TreeView_SetShowButtons(AObj: TTreeView; AValue: LongBool); extdecl;
begin
  AObj.ShowButtons := AValue;
end;

function TreeView_GetShowHint(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.ShowHint;
end;

procedure TreeView_SetShowHint(AObj: TTreeView; AValue: LongBool); extdecl;
begin
  AObj.ShowHint := AValue;
end;

function TreeView_GetShowLines(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.ShowLines;
end;

procedure TreeView_SetShowLines(AObj: TTreeView; AValue: LongBool); extdecl;
begin
  AObj.ShowLines := AValue;
end;

function TreeView_GetShowRoot(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.ShowRoot;
end;

procedure TreeView_SetShowRoot(AObj: TTreeView; AValue: LongBool); extdecl;
begin
  AObj.ShowRoot := AValue;
end;

function TreeView_GetSortType(AObj: TTreeView): TSortType; extdecl;
begin
  Result :=  AObj.SortType;
end;

procedure TreeView_SetSortType(AObj: TTreeView; AValue: TSortType); extdecl;
begin
  AObj.SortType := AValue;
end;

function TreeView_GetStateImages(AObj: TTreeView): TCustomImageList; extdecl;
begin
  Result :=  AObj.StateImages;
end;

procedure TreeView_SetStateImages(AObj: TTreeView; AValue: TCustomImageList); extdecl;
begin
  AObj.StateImages := AValue;
end;

function TreeView_GetTabOrder(AObj: TTreeView): TTabOrder; extdecl;
begin
  Result :=  AObj.TabOrder;
end;

procedure TreeView_SetTabOrder(AObj: TTreeView; AValue: TTabOrder); extdecl;
begin
  AObj.TabOrder := AValue;
end;

function TreeView_GetTabStop(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.TabStop;
end;

procedure TreeView_SetTabStop(AObj: TTreeView; AValue: LongBool); extdecl;
begin
  AObj.TabStop := AValue;
end;

function TreeView_GetToolTips(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.ToolTips;
end;

procedure TreeView_SetToolTips(AObj: TTreeView; AValue: LongBool); extdecl;
begin
  AObj.ToolTips := AValue;
end;

function TreeView_GetVisible(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.Visible;
end;

procedure TreeView_SetVisible(AObj: TTreeView; AValue: LongBool); extdecl;
begin
  AObj.Visible := AValue;
end;

procedure TreeView_SetOnAddition(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnAddition}
  {$DEFINE EventMethodName := TreeViewOnAddition}
  EventMethodCode
end;

procedure TreeView_SetOnAdvancedCustomDraw(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnAdvancedCustomDraw}
  {$DEFINE EventMethodName := TreeViewOnAdvancedCustomDraw}
  EventMethodCode
end;

procedure TreeView_SetOnAdvancedCustomDrawItem(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnAdvancedCustomDrawItem}
  {$DEFINE EventMethodName := TreeViewOnAdvancedCustomDrawItem}
  EventMethodCode
end;

procedure TreeView_SetOnChange(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnChange}
  {$DEFINE EventMethodName := TreeViewOnChange}
  EventMethodCode
end;

procedure TreeView_SetOnChanging(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnChanging}
  {$DEFINE EventMethodName := TreeViewOnChanging}
  EventMethodCode
end;

procedure TreeView_SetOnClick(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnClick}
  {$DEFINE EventMethodName := OnClick}
  EventMethodCode
end;

procedure TreeView_SetOnCollapsed(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnCollapsed}
  {$DEFINE EventMethodName := TreeViewOnCollapsed}
  EventMethodCode
end;

procedure TreeView_SetOnCollapsing(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnCollapsing}
  {$DEFINE EventMethodName := TreeViewOnCollapsing}
  EventMethodCode
end;

procedure TreeView_SetOnCompare(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnCompare}
  {$DEFINE EventMethodName := TreeViewOnCompare}
  EventMethodCode
end;

procedure TreeView_SetOnContextPopup(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnContextPopup}
  {$DEFINE EventMethodName := OnContextPopup}
  EventMethodCode
end;

procedure TreeView_SetOnCustomDraw(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnCustomDraw}
  {$DEFINE EventMethodName := TreeViewOnCustomDraw}
  EventMethodCode
end;

procedure TreeView_SetOnCustomDrawItem(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnCustomDrawItem}
  {$DEFINE EventMethodName := TreeViewOnCustomDrawItem}
  EventMethodCode
end;

procedure TreeView_SetOnDblClick(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnDblClick}
  {$DEFINE EventMethodName := OnDblClick}
  EventMethodCode
end;

procedure TreeView_SetOnDeletion(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnDeletion}
  {$DEFINE EventMethodName := TreeViewOnDeletion}
  EventMethodCode
end;

procedure TreeView_SetOnDragDrop(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnDragDrop}
  {$DEFINE EventMethodName := OnDragDrop}
  EventMethodCode
end;

procedure TreeView_SetOnDragOver(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnDragOver}
  {$DEFINE EventMethodName := OnDragOver}
  EventMethodCode
end;

procedure TreeView_SetOnEdited(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnEdited}
  {$DEFINE EventMethodName := TreeViewOnEdited}
  EventMethodCode
end;

procedure TreeView_SetOnEditing(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnEditing}
  {$DEFINE EventMethodName := TreeViewOnEditing}
  EventMethodCode
end;

procedure TreeView_SetOnEndDrag(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnEndDrag}
  {$DEFINE EventMethodName := OnEndDrag}
  EventMethodCode
end;

procedure TreeView_SetOnEnter(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnEnter}
  {$DEFINE EventMethodName := OnEnter}
  EventMethodCode
end;

procedure TreeView_SetOnExit(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnExit}
  {$DEFINE EventMethodName := OnExit}
  EventMethodCode
end;

procedure TreeView_SetOnExpanding(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnExpanding}
  {$DEFINE EventMethodName := TreeViewOnExpanding}
  EventMethodCode
end;

procedure TreeView_SetOnExpanded(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnExpanded}
  {$DEFINE EventMethodName := TreeViewOnExpanded}
  EventMethodCode
end;

procedure TreeView_SetOnGetSelectedIndex(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnGetSelectedIndex}
  {$DEFINE EventMethodName := TreeViewOnGetSelectedIndex}
  EventMethodCode
end;

procedure TreeView_SetOnKeyDown(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnKeyDown}
  {$DEFINE EventMethodName := OnKeyDown}
  EventMethodCode
end;

procedure TreeView_SetOnKeyPress(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnKeyPress}
  {$DEFINE EventMethodName := OnKeyPress}
  EventMethodCode
end;

procedure TreeView_SetOnKeyUp(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnKeyUp}
  {$DEFINE EventMethodName := OnKeyUp}
  EventMethodCode
end;

procedure TreeView_SetOnMouseDown(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnMouseDown}
  {$DEFINE EventMethodName := OnMouseDown}
  EventMethodCode
end;

procedure TreeView_SetOnMouseEnter(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnMouseEnter}
  {$DEFINE EventMethodName := OnMouseEnter}
  EventMethodCode
end;

procedure TreeView_SetOnMouseLeave(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnMouseLeave}
  {$DEFINE EventMethodName := OnMouseLeave}
  EventMethodCode
end;

procedure TreeView_SetOnMouseMove(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnMouseMove}
  {$DEFINE EventMethodName := OnMouseMove}
  EventMethodCode
end;

procedure TreeView_SetOnMouseUp(AObj: TTreeView; AEventId: NativeUInt); extdecl;
begin
  {$DEFINE EventName := OnMouseUp}
  {$DEFINE EventMethodName := OnMouseUp}
  EventMethodCode
end;

function TreeView_GetItems(AObj: TTreeView): TTreeNodes; extdecl;
begin
  Result :=  AObj.Items;
end;

procedure TreeView_SetItems(AObj: TTreeView; AValue: TTreeNodes); extdecl;
begin
  AObj.Items := AValue;
end;

function TreeView_GetCanvas(AObj: TTreeView): TCanvas; extdecl;
begin
  Result :=  AObj.Canvas;
end;

function TreeView_GetSelected(AObj: TTreeView): TTreeNode; extdecl;
begin
  Result :=  AObj.Selected;
end;

procedure TreeView_SetSelected(AObj: TTreeView; AValue: TTreeNode); extdecl;
begin
  AObj.Selected := AValue;
end;

function TreeView_GetTopItem(AObj: TTreeView): TTreeNode; extdecl;
begin
  Result :=  AObj.TopItem;
end;

procedure TreeView_SetTopItem(AObj: TTreeView; AValue: TTreeNode); extdecl;
begin
  AObj.TopItem := AValue;
end;

function TreeView_GetSelectionCount(AObj: TTreeView): Cardinal; extdecl;
begin
  Result :=  AObj.SelectionCount;
end;

function TreeView_GetDockClientCount(AObj: TTreeView): Integer; extdecl;
begin
  Result :=  AObj.DockClientCount;
end;

function TreeView_GetDockSite(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.DockSite;
end;

procedure TreeView_SetDockSite(AObj: TTreeView; AValue: LongBool); extdecl;
begin
  AObj.DockSite := AValue;
end;

function TreeView_GetVisibleDockClientCount(AObj: TTreeView): Integer; extdecl;
begin
  Result :=  AObj.VisibleDockClientCount;
end;

function TreeView_GetBrush(AObj: TTreeView): TBrush; extdecl;
begin
  Result :=  AObj.Brush;
end;

function TreeView_GetControlCount(AObj: TTreeView): Integer; extdecl;
begin
  Result :=  AObj.ControlCount;
end;

function TreeView_GetHandle(AObj: TTreeView): HWND; extdecl;
begin
  Result :=  AObj.Handle;
end;

function TreeView_GetParentWindow(AObj: TTreeView): HWND; extdecl;
begin
  Result :=  AObj.ParentWindow;
end;

procedure TreeView_SetParentWindow(AObj: TTreeView; AValue: HWND); extdecl;
begin
  AObj.ParentWindow := AValue;
end;

function TreeView_GetUseDockManager(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.UseDockManager;
end;

procedure TreeView_SetUseDockManager(AObj: TTreeView; AValue: LongBool); extdecl;
begin
  AObj.UseDockManager := AValue;
end;

function TreeView_GetAction(AObj: TTreeView): TBasicAction; extdecl;
begin
  Result :=  AObj.Action;
end;

procedure TreeView_SetAction(AObj: TTreeView; AValue: TBasicAction); extdecl;
begin
  AObj.Action := AValue;
end;

procedure TreeView_GetBoundsRect(AObj: TTreeView; var Result: TRect); extdecl;
begin
  Result :=  AObj.BoundsRect;
end;

procedure TreeView_SetBoundsRect(AObj: TTreeView; var AValue: TRect); extdecl;
begin
  AObj.BoundsRect := AValue;
end;

function TreeView_GetClientHeight(AObj: TTreeView): Integer; extdecl;
begin
  Result :=  AObj.ClientHeight;
end;

procedure TreeView_SetClientHeight(AObj: TTreeView; AValue: Integer); extdecl;
begin
  AObj.ClientHeight := AValue;
end;

procedure TreeView_GetClientOrigin(AObj: TTreeView; var Result: TPoint); extdecl;
begin
  Result :=  AObj.ClientOrigin;
end;

procedure TreeView_GetClientRect(AObj: TTreeView; var Result: TRect); extdecl;
begin
  Result :=  AObj.ClientRect;
end;

function TreeView_GetClientWidth(AObj: TTreeView): Integer; extdecl;
begin
  Result :=  AObj.ClientWidth;
end;

procedure TreeView_SetClientWidth(AObj: TTreeView; AValue: Integer); extdecl;
begin
  AObj.ClientWidth := AValue;
end;

function TreeView_GetControlState(AObj: TTreeView): TControlState; extdecl;
begin
  Result :=  AObj.ControlState;
end;

procedure TreeView_SetControlState(AObj: TTreeView; AValue: TControlState); extdecl;
begin
  AObj.ControlState := AValue;
end;

function TreeView_GetControlStyle(AObj: TTreeView): TControlStyle; extdecl;
begin
  Result :=  AObj.ControlStyle;
end;

procedure TreeView_SetControlStyle(AObj: TTreeView; AValue: TControlStyle); extdecl;
begin
  AObj.ControlStyle := AValue;
end;

function TreeView_GetFloating(AObj: TTreeView): LongBool; extdecl;
begin
  Result :=  AObj.Floating;
end;

function TreeView_GetParent(AObj: TTreeView): TWinControl; extdecl;
begin
  Result :=  AObj.Parent;
end;

procedure TreeView_SetParent(AObj: TTreeView; AValue: TWinControl); extdecl;
begin
  AObj.Parent := AValue;
end;

function TreeView_GetLeft(AObj: TTreeView): Integer; extdecl;
begin
  Result :=  AObj.Left;
end;

procedure TreeView_SetLeft(AObj: TTreeView; AValue: Integer); extdecl;
begin
  AObj.Left := AValue;
end;

function TreeView_GetTop(AObj: TTreeView): Integer; extdecl;
begin
  Result :=  AObj.Top;
end;

procedure TreeView_SetTop(AObj: TTreeView; AValue: Integer); extdecl;
begin
  AObj.Top := AValue;
end;

function TreeView_GetWidth(AObj: TTreeView): Integer; extdecl;
begin
  Result :=  AObj.Width;
end;

procedure TreeView_SetWidth(AObj: TTreeView; AValue: Integer); extdecl;
begin
  AObj.Width := AValue;
end;

function TreeView_GetHeight(AObj: TTreeView): Integer; extdecl;
begin
  Result :=  AObj.Height;
end;

procedure TreeView_SetHeight(AObj: TTreeView; AValue: Integer); extdecl;
begin
  AObj.Height := AValue;
end;

function TreeView_GetCursor(AObj: TTreeView): TCursor; extdecl;
begin
  Result :=  AObj.Cursor;
end;

procedure TreeView_SetCursor(AObj: TTreeView; AValue: TCursor); extdecl;
begin
  AObj.Cursor := AValue;
end;

function TreeView_GetHint(AObj: TTreeView): PChar; extdecl;
begin
  Result :=  PChar(AObj.Hint);
end;

procedure TreeView_SetHint(AObj: TTreeView; AValue: PChar); extdecl;
begin
  AObj.Hint := AValue;
end;

function TreeView_GetComponentCount(AObj: TTreeView): Integer; extdecl;
begin
  Result :=  AObj.ComponentCount;
end;

function TreeView_GetComponentIndex(AObj: TTreeView): Integer; extdecl;
begin
  Result :=  AObj.ComponentIndex;
end;

procedure TreeView_SetComponentIndex(AObj: TTreeView; AValue: Integer); extdecl;
begin
  AObj.ComponentIndex := AValue;
end;

function TreeView_GetOwner(AObj: TTreeView): TComponent; extdecl;
begin
  Result :=  AObj.Owner;
end;

function TreeView_GetName(AObj: TTreeView): PChar; extdecl;
begin
  Result :=  PChar(AObj.Name);
end;

procedure TreeView_SetName(AObj: TTreeView; AValue: PChar); extdecl;
begin
  AObj.Name := AValue;
end;

function TreeView_GetTag(AObj: TTreeView): NativeInt; extdecl;
begin
  Result :=  AObj.Tag;
end;

procedure TreeView_SetTag(AObj: TTreeView; AValue: NativeInt); extdecl;
begin
  AObj.Tag := AValue;
end;

function TreeView_GetSelections(AObj: TTreeView; Index: Integer): TTreeNode; extdecl;
begin
  Result :=  AObj.Selections[Index];
end;

function TreeView_GetDockClients(AObj: TTreeView; Index: Integer): TControl; extdecl;
begin
  Result :=  AObj.DockClients[Index];
end;

function TreeView_GetControls(AObj: TTreeView; Index: Integer): TControl; extdecl;
begin
  Result :=  AObj.Controls[Index];
end;

function TreeView_GetComponents(AObj: TTreeView; AIndex: Integer): TComponent; extdecl;
begin
  Result :=  AObj.Components[AIndex];
end;

function TreeView_StaticClassType: TClass; extdecl;
begin
  Result := TTreeView;
end;

exports
  TreeView_Create,
  TreeView_Free,
  TreeView_FullCollapse,
  TreeView_FullExpand,
  TreeView_GetNodeAt,
  TreeView_IsEditing,
  TreeView_LoadFromFile,
  TreeView_LoadFromStream,
  TreeView_SaveToFile,
  TreeView_SaveToStream,
  TreeView_ClearSelection,
  TreeView_CustomSort,
  TreeView_CanFocus,
  TreeView_ContainsControl,
  TreeView_ControlAtPos,
  TreeView_DisableAlign,
  TreeView_EnableAlign,
  TreeView_FindChildControl,
  TreeView_FlipChildren,
  TreeView_Focused,
  TreeView_HandleAllocated,
  TreeView_InsertControl,
  TreeView_Invalidate,
  TreeView_RemoveControl,
  TreeView_Realign,
  TreeView_Repaint,
  TreeView_ScaleBy,
  TreeView_ScrollBy,
  TreeView_SetBounds,
  TreeView_SetFocus,
  TreeView_Update,
  TreeView_BringToFront,
  TreeView_ClientToScreen,
  TreeView_ClientToParent,
  TreeView_Dragging,
  TreeView_HasParent,
  TreeView_Hide,
  TreeView_Perform,
  TreeView_Refresh,
  TreeView_ScreenToClient,
  TreeView_ParentToClient,
  TreeView_SendToBack,
  TreeView_Show,
  TreeView_GetTextBuf,
  TreeView_GetTextLen,
  TreeView_SetTextBuf,
  TreeView_FindComponent,
  TreeView_GetNamePath,
  TreeView_Assign,
  TreeView_ClassType,
  TreeView_ClassName,
  TreeView_InstanceSize,
  TreeView_InheritsFrom,
  TreeView_Equals,
  TreeView_GetHashCode,
  TreeView_ToString,
  TreeView_GetAlign,
  TreeView_SetAlign,
  TreeView_GetAnchors,
  TreeView_SetAnchors,
  TreeView_GetAutoExpand,
  TreeView_SetAutoExpand,
  TreeView_GetBiDiMode,
  TreeView_SetBiDiMode,
  TreeView_GetBorderStyle,
  TreeView_SetBorderStyle,
  TreeView_GetBorderWidth,
  TreeView_SetBorderWidth,
  TreeView_GetColor,
  TreeView_SetColor,
  TreeView_GetDoubleBuffered,
  TreeView_SetDoubleBuffered,
  TreeView_GetDragKind,
  TreeView_SetDragKind,
  TreeView_GetDragCursor,
  TreeView_SetDragCursor,
  TreeView_GetDragMode,
  TreeView_SetDragMode,
  TreeView_GetEnabled,
  TreeView_SetEnabled,
  TreeView_GetFont,
  TreeView_SetFont,
  TreeView_GetHideSelection,
  TreeView_SetHideSelection,
  TreeView_GetHotTrack,
  TreeView_SetHotTrack,
  TreeView_GetImages,
  TreeView_SetImages,
  TreeView_GetIndent,
  TreeView_SetIndent,
  TreeView_GetMultiSelect,
  TreeView_SetMultiSelect,
  TreeView_GetMultiSelectStyle,
  TreeView_SetMultiSelectStyle,
  TreeView_GetParentColor,
  TreeView_SetParentColor,
  TreeView_GetParentFont,
  TreeView_SetParentFont,
  TreeView_GetParentShowHint,
  TreeView_SetParentShowHint,
  TreeView_GetPopupMenu,
  TreeView_SetPopupMenu,
  TreeView_GetReadOnly,
  TreeView_SetReadOnly,
  TreeView_GetRightClickSelect,
  TreeView_SetRightClickSelect,
  TreeView_GetRowSelect,
  TreeView_SetRowSelect,
  TreeView_GetShowButtons,
  TreeView_SetShowButtons,
  TreeView_GetShowHint,
  TreeView_SetShowHint,
  TreeView_GetShowLines,
  TreeView_SetShowLines,
  TreeView_GetShowRoot,
  TreeView_SetShowRoot,
  TreeView_GetSortType,
  TreeView_SetSortType,
  TreeView_GetStateImages,
  TreeView_SetStateImages,
  TreeView_GetTabOrder,
  TreeView_SetTabOrder,
  TreeView_GetTabStop,
  TreeView_SetTabStop,
  TreeView_GetToolTips,
  TreeView_SetToolTips,
  TreeView_GetVisible,
  TreeView_SetVisible,
  TreeView_SetOnAddition,
  TreeView_SetOnAdvancedCustomDraw,
  TreeView_SetOnAdvancedCustomDrawItem,
  TreeView_SetOnChange,
  TreeView_SetOnChanging,
  TreeView_SetOnClick,
  TreeView_SetOnCollapsed,
  TreeView_SetOnCollapsing,
  TreeView_SetOnCompare,
  TreeView_SetOnContextPopup,
  TreeView_SetOnCustomDraw,
  TreeView_SetOnCustomDrawItem,
  TreeView_SetOnDblClick,
  TreeView_SetOnDeletion,
  TreeView_SetOnDragDrop,
  TreeView_SetOnDragOver,
  TreeView_SetOnEdited,
  TreeView_SetOnEditing,
  TreeView_SetOnEndDrag,
  TreeView_SetOnEnter,
  TreeView_SetOnExit,
  TreeView_SetOnExpanding,
  TreeView_SetOnExpanded,
  TreeView_SetOnGetSelectedIndex,
  TreeView_SetOnKeyDown,
  TreeView_SetOnKeyPress,
  TreeView_SetOnKeyUp,
  TreeView_SetOnMouseDown,
  TreeView_SetOnMouseEnter,
  TreeView_SetOnMouseLeave,
  TreeView_SetOnMouseMove,
  TreeView_SetOnMouseUp,
  TreeView_GetItems,
  TreeView_SetItems,
  TreeView_GetCanvas,
  TreeView_GetSelected,
  TreeView_SetSelected,
  TreeView_GetTopItem,
  TreeView_SetTopItem,
  TreeView_GetSelectionCount,
  TreeView_GetDockClientCount,
  TreeView_GetDockSite,
  TreeView_SetDockSite,
  TreeView_GetVisibleDockClientCount,
  TreeView_GetBrush,
  TreeView_GetControlCount,
  TreeView_GetHandle,
  TreeView_GetParentWindow,
  TreeView_SetParentWindow,
  TreeView_GetUseDockManager,
  TreeView_SetUseDockManager,
  TreeView_GetAction,
  TreeView_SetAction,
  TreeView_GetBoundsRect,
  TreeView_SetBoundsRect,
  TreeView_GetClientHeight,
  TreeView_SetClientHeight,
  TreeView_GetClientOrigin,
  TreeView_GetClientRect,
  TreeView_GetClientWidth,
  TreeView_SetClientWidth,
  TreeView_GetControlState,
  TreeView_SetControlState,
  TreeView_GetControlStyle,
  TreeView_SetControlStyle,
  TreeView_GetFloating,
  TreeView_GetParent,
  TreeView_SetParent,
  TreeView_GetLeft,
  TreeView_SetLeft,
  TreeView_GetTop,
  TreeView_SetTop,
  TreeView_GetWidth,
  TreeView_SetWidth,
  TreeView_GetHeight,
  TreeView_SetHeight,
  TreeView_GetCursor,
  TreeView_SetCursor,
  TreeView_GetHint,
  TreeView_SetHint,
  TreeView_GetComponentCount,
  TreeView_GetComponentIndex,
  TreeView_SetComponentIndex,
  TreeView_GetOwner,
  TreeView_GetName,
  TreeView_SetName,
  TreeView_GetTag,
  TreeView_SetTag,
  TreeView_GetSelections,
  TreeView_GetDockClients,
  TreeView_GetControls,
  TreeView_GetComponents,
  TreeView_StaticClassType;

